<?php
	class IMDB_AKA_Title extends IMDB_AKA {
		private $sTitle, $aCountries, $aDescriptions;
		public function __construct($sTitle, $aInfo) {
			$aCountries = array();
			$aDescriptions = array();
			foreach ($aInfo as $K => $aEntry) {
				$aCountries[$K] = $aEntry["Country"];
				$aDescriptions[$K] = $aEntry["Description"];
			}
			
			$this->sTitle = $sTitle;
			$this->aCountries = $aCountries;
			$this->aDescriptions = $aDescriptions;
		}
		public function getTitle() {
			return $this->sTitle;
		}
		public function getCountry() {
			if (count($this->aCountries) > 0)
				return $this->aCountries[0];
			return false;
		}
		public function getDescription() {
			if (count($this->aDescriptions) > 0)
				return $this->aDescriptions[0];
			return false;
		}
		public function getCountrys() {
			return $this->aCountries;
		}
		public function getDescriptions() {
			return $this->aDescriptions;
		}
	}
?>